<%--
  Created by IntelliJ IDEA.
  User: 大帅逼
  Date: 2024/8/17
  Time: 19:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>供应商管理系统</title>

    <%
        String base = request.getContextPath()+"/";
        String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+base;
    %>
    <base href="<%=url%>">






    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="assets/img/logo.png">
    <link rel="apple-touch-icon-precomposed" href="assets/img/syncfusion-icons-white.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">


</head>

<body data-type="login">

<div class="am-g myapp-login">
    <div class="myapp-login-logo-block  tpl-login-max">
        <div class="myapp-login-logo-text">
            <div class="myapp-login-logo-text">
                供应商管理系统
            </div>
        </div>
        <div class="am-u-sm-10 login-am-center">
            <form class="am-form">
                <fieldset>
                    <div class="am-form-group">
                        <input type="email" class="" id="doc-ipt-email-1" placeholder="请输入账号">
                    </div>
                    <div class="am-form-group">
                        <input type="password" class="" id="doc-ipt-pwd-1" placeholder="请输入密码">
                    </div>
                    <a   style="margin-top: 20px;color:#fff;font-size:18px" id="kk">
                        <div style="    width: 100%;height: 40px;text-align: center;
						border-radius: 6px;
						background: #53d192;
						border: none;
						color: #fff;
						font-size: 18px;
						line-height: 40px;margin-top: 20px;">登录
                        </div>
                    </a>
                </fieldset>
            </form>
        </div>
    </div>
</div>

<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/app.js"></script>

<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        //窗体加载后，提交按钮的单击事件，发送异步请求：
        $("#kk").click(function () {
            var email1=$("[type='email']").val();
            var password1=$("[type='password']").val();
            $.get("book/add1",
                {"email":email1,"password":password1},
                function (str) {
                    JSON.stringify(str);
                    if(str){
                        alert("登录成功");
                        document.location.href="info-certification.jsp";
                    }else{
                        alert("登录失败");

                    }
                });
        });
    });
</script>
</body>

</html>